//==============================================================================
// Copyright 2009 Sidney Shek All Rights Reserved
//==============================================================================
// SYSTEM:        ITEC824-MajorProject-Server
// FILE NAME:	  TimesheetEntry.java
// DESCRIPTION:   
// AUTHOR:        sshek2
// CREATED:       17/04/2009
//
// REVISION HISTORY:
// $Author: $
// $Id:  $
//
//==============================================================================
//

package itec824.server.model;

/**
 * Holds information about a timesheet entry
 * 
 *
 * @version $Revision: $
 * @author sshek2
 */
public class TimesheetEntry
{
    /**
     * @return Returns the duration.
     */
    public long getDuration()
    {
        return myDuration;
    }
    /**
     * @param aDuration The duration to set.
     */
    public void setDuration(long aDuration)
    {
        myDuration = aDuration;
    }
    /**
     * @return Returns the comment.
     */
    public String getComment()
    {
        return myComment;
    }
    /**
     * @param aComment The comment to set.
     */
    public void setComment(String aComment)
    {
        myComment = aComment;
    }
    /**
     * @return Returns the entryId.
     */
    public long getEntryId()
    {
        return myEntryId;
    }
    /**
     * @param aEntryId The entryId to set.
     */
    public void setEntryId(long aEntryId)
    {
        myEntryId = aEntryId;
    }
    /**
     * @return Returns the task.
     */
    public Task getTask()
    {
        return myTask;
    }
    /**
     * @param aTask The task to set.
     */
    public void setTask(Task aTask)
    {
        myTask = aTask;
    }
    
    /** Duration of timesheet entry in milliseconds */
    private long myDuration;
    /** Comment for timesheet entry */
    private String myComment;
    /** Unique Id for entry */
    private long myEntryId;
    /** Referenced task */
    private Task myTask;
}
